package com.tqz.anno;

import com.tqz.core.RemoteCallBeanDefinitionRegistrar;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * <p>开启 {@link RemoteCall} rpc调用功能
 *
 * @author tianqingzhao
 * @since 2021/7/8 11:47
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Import(RemoteCallBeanDefinitionRegistrar.class)
public @interface EnableRemoteCall {

    /**
     * 扫描的路径
     *
     * @return
     */
    String[] scannerPackages() default {};
}
